#ifndef MONITORWINDOW_H
#define MONITORWINDOW_H

#include <QWidget>

QT_BEGIN_NAMESPACE
class QPushButton;
class QTabWidget;
class QTextEdit;
QT_END_NAMESPACE

namespace Ui {
class MonitorWindow;
}

class MonitorWindow : public QWidget
{
    Q_OBJECT

public:
    explicit MonitorWindow(QWidget *parent = nullptr);
    ~MonitorWindow();

signals:
    void windowClosed();

private slots:
    void onRealTimeMonitorClicked();
    void onDeviceStatusClicked();
    void onAlarmClicked();
    void onStatisticsClicked();
    void onDeviceInfoClicked();
    void onRefreshClicked();
    void onCloseClicked();

protected:
    void closeEvent(QCloseEvent *event) override;

private:
    Ui::MonitorWindow *ui;
    
    void setupConnections();
    void updateDetailInfo(const QString &info);
};

#endif // MONITORWINDOW_H